package com.yunsom.testdemo.design.command;

/**
 * @author Xbao
 * @description
 * @date 2022/6/7 16:21
 */
public class SellStock implements Order{

  private Stock beerStock;

  public SellStock(Stock beerStock){
    this.beerStock = beerStock;
  }

  @Override
  public void execute() {
    beerStock.sell();
  }
}
